#define paginate(currentPage, totalPage, link)
	#if(totalPage <= 0 || currentPage > totalPage) #return #end
	#setLocal(startPage = currentPage - 4)
	#if (startPage < 1) #setLocal(startPage = 1) #end
	
	#setLocal(endPage = currentPage + 4)
	#if (endPage > totalPage) #setLocal(endPage = totalPage) #end
	
	<div class="page">
		<a href="#(link)-1#(append)" class="a1">首页</a>
		#if (currentPage == 1)
			<a href="#" class="a1">上一页</a>
		#else
			<a href="#(link)-#(currentPage - 1)#(append)" class="a1">上一页</a>
		#end
		#if (currentPage == totalPage)
			<a href="#" class="a1">下一页</a>
		#else
			<a href="#(link)-#(currentPage + 1)#(append)" class="a1">下一页</a>
		#end
		<a href="#(link)-#(totalPage)#(append)" class="a1">尾页</a>
	</div>
#end